package com.lq.ecoldchain.ui.mine.enter

import android.view.View
import com.alibaba.android.arouter.launcher.ARouter
import com.lq.ecoldchain.base.BaseNavigator
import com.lq.ecoldchain.base.viewdelegate.BaseViewDelegate

/*
*2018/12/26 0026  20:00
*function by lq
*/
class EnterDelegate(val viewModel:EnterViewModel):BaseViewDelegate(){

    fun commit() = viewModel.commit()

    fun certificationPersonal(view:View){
        if(viewModel.isIdentity.value=="未认证"){
            //实名认证
            ARouter.getInstance().build(BaseNavigator.verified).navigation()
        }
    }



}